cmake_minimum_required( VERSION 2.8.8 )
project (rockit)
include_directories(sdk/include)
if(ARCH64)
set(ROCKIT_DEP_COMMON_LIBS
    ${CMAKE_CURRENT_LIST_DIR}/../lib/lib64/librockit_full.so
    ${CMAKE_CURRENT_LIST_DIR}/../lib/lib64/libfftw3.so.3.6.10
)
set(ROCKIT_FILE_LIBS
    ${ROCKIT_DEP_COMMON_LIBS}
    ${CMAKE_CURRENT_LIST_DIR}/sdk/lib64/libgraphic_lsf.so
    ${CMAKE_CURRENT_LIST_DIR}/sdk/lib64/librkgfx_avs.so
    ${CMAKE_CURRENT_LIST_DIR}/sdk/lib64/libpanoStitchApp.so
)

set(RKNNTOOLKITS_LIBS
    ${CMAKE_CURRENT_LIST_DIR}/../lib/lib64/librknnmrt.so
    # ${CMAKE_CURRENT_LIST_DIR}/../lib/lib64/librknnrt.so
) #rknn_lib

set(RK_LR_LIBS
    ${CMAKE_CURRENT_LIST_DIR}/../lib/lib64/libsmartIr.so
    ${CMAKE_CURRENT_LIST_DIR}/../lib/lib64/librkaiq.so
) #rk_lr_liib


set(ROCKIT_DUMPSYS_FILE ${CMAKE_CURRENT_LIST_DIR}/example/bin/bin64/dumpsys)



else()
set(ROCKIT_DEP_COMMON_LIBS
    ${CMAKE_CURRENT_LIST_DIR}/../lib/lib32/librockit_full.so
)

set(TAIIC_FFTW_COMMON_LIBS
    ${CMAKE_CURRENT_LIST_DIR}/../lib/lib32/libfftw3.so.3.6.10
)


set(RKNNTOOLKITS_LIBS
    ${CMAKE_CURRENT_LIST_DIR}/../lib/lib32/librknnmrt.so
    #${CMAKE_CURRENT_LIST_DIR}/../lib/lib32/librknnrt.so
)#rknn_lib

set(RK_LR_LIBS
    ${CMAKE_CURRENT_LIST_DIR}/../lib/lib32/libsmartIr.so
    ${CMAKE_CURRENT_LIST_DIR}/../lib/lib32/librkaiq.so
)#rk_lr_lib

set(TAIICBSA_LIBS
    ${CMAKE_CURRENT_LIST_DIR}/../lib/lib32/libbsa.so
)#bsa_lib

set(TAIICBSA_COMMON_LIBS
    ${CMAKE_CURRENT_LIST_DIR}/../lib/lib32/libbsacomm.so
)# bsa_common lib

set(TAIICRGA_LIBS
    ${CMAKE_CURRENT_LIST_DIR}/../lib/lib32/librga.so
)

set(TAIICOPENCV_LIBS
    ${CMAKE_CURRENT_LIST_DIR}/../lib/lib32/libopencv_calib3d.so
    ${CMAKE_CURRENT_LIST_DIR}/../lib/lib32/libopencv_core.so
    ${CMAKE_CURRENT_LIST_DIR}/../lib/lib32/libopencv_dnn.so
    ${CMAKE_CURRENT_LIST_DIR}/../lib/lib32/libopencv_features2d.so
    ${CMAKE_CURRENT_LIST_DIR}/../lib/lib32/libopencv_flann.so
    ${CMAKE_CURRENT_LIST_DIR}/../lib/lib32/libopencv_highgui.so
    ${CMAKE_CURRENT_LIST_DIR}/../lib/lib32/libopencv_imgcodecs.so
    ${CMAKE_CURRENT_LIST_DIR}/../lib/lib32/libopencv_imgproc.so
    ${CMAKE_CURRENT_LIST_DIR}/../lib/lib32/libopencv_ml.so
    ${CMAKE_CURRENT_LIST_DIR}/../lib/lib32/libopencv_objdetect.so
    ${CMAKE_CURRENT_LIST_DIR}/../lib/lib32/libopencv_photo.so
    ${CMAKE_CURRENT_LIST_DIR}/../lib/lib32/libopencv_shape.so
    ${CMAKE_CURRENT_LIST_DIR}/../lib/lib32/libopencv_stitching.so
    ${CMAKE_CURRENT_LIST_DIR}/../lib/lib32/libopencv_superres.so
    ${CMAKE_CURRENT_LIST_DIR}/../lib/lib32/libopencv_video.so
    ${CMAKE_CURRENT_LIST_DIR}/../lib/lib32/libopencv_videoio.so
    ${CMAKE_CURRENT_LIST_DIR}/../lib/lib32/libopencv_videostab.so
)


set(ROCKIT_DEP_COMMON_LIBS_STATIC
    ${CMAKE_CURRENT_LIST_DIR}/../lib/lib32/librockit_full.a
)

set(ROCKIT_FILE_LIBS
    ${CMAKE_CURRENT_LIST_DIR}/../lib/lib32/librockit_full.so
    ${CMAKE_CURRENT_LIST_DIR}/../lib/lib32/librockit_full.a
    ${CMAKE_CURRENT_LIST_DIR}/../lib/lib32/librockit_tiny.so
    ${CMAKE_CURRENT_LIST_DIR}/../lib/lib32/librockit_tiny.a
    ${CMAKE_CURRENT_LIST_DIR}/../lib/lib32/librockit.so
    ${CMAKE_CURRENT_LIST_DIR}/../lib/lib32/librockit.a
)
set(ROCKIT_DUMPSYS_FILE ${CMAKE_CURRENT_LIST_DIR}/example/bin/bin32/dumpsys)
endif()

set(TAIIC_TEST_MODULE_LIBS 
    ${CMAKE_CURRENT_LIST_DIR}/example/lib/libearphoneTestToolV3.so)

add_subdirectory(sdk)
add_subdirectory(example)
